package com.anlu.pattern.action.strategy;

import com.anlu.pattern.common.enume.enumfun.StrategyEnum;

public class StrategyClient {

    public static void main(String[] args) {
        //初始化策略的上下文
        StrategyContext manager = new StrategyContext();

        int result= manager.calculate(StrategyEnum.STRATEGY_SECOND_DISCOUNT,109);
        System.out.println("优惠后的价格是："+result);
    }

}
